<template>
  <div class="foot">
    <template v-if="type != 'return'">
      <span @click="handleClick">确认下单</span>
    </template>
    <template v-else>
      <span @click="handleReturn">提交申请</span>
    </template>
  </div>
</template>

<script>
import common from '../../api/common'
export default {
  data() {
    return {
      type: common.getParam('type')
    }
  },
  methods: {
    handleClick() {
      this.$emit("handleSubmit");
    },
    handleReturn() {
      this.$emit("handleReturn")
    }
  }
};
</script>

<style lang="less" scoped>
.foot {
  position: fixed;
  bottom: 0;
  left: 0;
  span {
    font-size: 4vw;
    padding: 3.5vw;
    text-align: center;
    display: inline-block;
    width: 100vw;
    background: #008fef;
    color: #fff;
  }
}
</style>